package com.itheima.exerciseTest.method10_19.method11;

import java.text.Collator;
import java.util.Locale;

public class Test {
    public static void main(String[] args) {

        /*int result = Float.compare(20,10);
        System.out.println(result);
        String s1 = "abc";
        String s2 = "abcd";
        System.out.println(s1.compareTo(s2));*/

        Collator ins = Collator.getInstance(Locale.CHINESE);
        String s3 = "阿伟";
        String s4 = "博哥";
        System.out.println(ins.compare(s3, s4));

    }
}
